package com.spring.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName: SpringServiceApplication
 * @Description: 应用程序启动类
 * @Author: ZhouWei
 * @Date: 2022-1-22 - 20:24
 */
public class SpringServiceApplication
{
	public static void main(String[] args)
	{
		ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);

		UserComponent userComponent = applicationContext.getBean("userComponent", UserComponent.class);

		userComponent.print();
	}
}
